﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SLSudoDB
{
    /// <summary>
    /// used to help identify what field will be the primary key that is used to store the file for each record in the table
    /// Look at the following example to see how to impliment this.
    /// </summary>
    /// <example>
    /// public class Person : IRecord
    /// {
    ///     private int _id;
    ///     public int PrimaryKey
    ///     {
    ///         get { return _id; }
    ///         set { _id = value; }
    ///     }
    ///
    ///     public string FirstName { get; set; }
    ///     public string LastName { get; set; }
    ///     public string AddressLine1 { get; set; }
    ///     public string AddressLine2 { get; set; }
    ///     public string City { get; set; }
    ///     public string State { get; set; }
    ///     public string Zip { get; set; }
    /// }
    /// </example>
    public interface IRecord
    {
        int PrimaryKey { get; set; }
    }

    public class Person : IRecord
    {
        private int _id;
        public int PrimaryKey
        {
            get { return _id; }
            set { _id = value; }
        }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string AddressLine1 { get; set; }
        public string AddressLine2 { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
    }
}